/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.isn.examenes.entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
/**
 *
 * @author pool
 */
@Embeddable
public class DetalleOrdenexamenPK implements Serializable {

	private static final long serialVersionUID = 1L;
	@Basic(optional = false)
    @Column(name = "Num_Oe", columnDefinition="CHAR(5) unsigned")
    private String numOe;
    @Basic(optional = false)
    @Column(name = "Cod_Exa", columnDefinition="CHAR(5) unsigned")
    private String codExa;

    public DetalleOrdenexamenPK() {
    }

    public DetalleOrdenexamenPK(String numOe, String codExa) {
        this.numOe = numOe;
        this.codExa = codExa;
    }

    public String getNumOe() {
        return numOe;
    }

    public void setNumOe(String numOe) {
        this.numOe = numOe;
    }

    public String getCodExa() {
        return codExa;
    }

    public void setCodExa(String codExa) {
        this.codExa = codExa;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (numOe != null ? numOe.hashCode() : 0);
        hash += (codExa != null ? codExa.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof DetalleOrdenexamenPK)) {
            return false;
        }
        DetalleOrdenexamenPK other = (DetalleOrdenexamenPK) object;
        if ((this.numOe == null && other.numOe != null) || (this.numOe != null && !this.numOe.equals(other.numOe))) {
            return false;
        }
        if ((this.codExa == null && other.codExa != null) || (this.codExa != null && !this.codExa.equals(other.codExa))) {
            return false;
        }
        return true;
    }

}
